home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / August 96 / FW_CODPart ReleaseAll not call < prev    next >
Encoding:
Internet Message Format  |  1996-08-23  |  1.5 KB  |  [TEXT/ttxt]

  1. Subject:     FW_CODPart::ReleaseAll not called
  2. Sent:        8/22/96 8:45 PM
  3. Received:    8/23/96 9:15 AM
  4. From:        Hutchings, Richard B. "Brad", brad@hutchings-software.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Here's the problem.
  9.  
  10. OD 1.1f13. ODF 1. I've tweaked FW_CODPart::CloneInto and
  11. FW_CODPart::ClonePartInfo to support promises when Rapid-I Button is
  12. embedded and it's a single frame being dragged or copied or cut. Due
  13. primarily to the incredible speed of AppleScript :-), it takes about 1.8
  14. seconds to externalize a Rapid-I Button, so I want to avoid actually doing
  15. it unless absolutely necessary.
  16.  
  17. Using ODF Container, I embed a Rapid-I Button. Then, I copy select the
  18. button and copy it. With my modifications, this causes the
  19. FW_CDataInterchange object to record a clipboard promise. Next, I delete
  20. the button with the "delete" key. Since delete is undoable, I'm not
  21. expecting FW_CODPart::ReleaseAll to be called yet for the button. Then I
  22. save the document. Now, I expect ReleaseAll to be called, but it is not.
  23. Finally, I try to paste, and crash because my promise is no good and was
  24. not fulfilled before the original part was clobbered.
  25.  
  26. Is this an ODF problem or an OpenDoc 1.1f13 problem or an ODF Container
  27. problem?
  28.  
  29. Brad
  30.  
  31. <mailto: "Brad Hutchings" brad@hutchings-software.com>
  32. <http://www.hutchings-software.com>
  33.  
  34. Got OpenDoc? Got Cyberdog? Then beta-test Rapid-I Button! Email me for more
  35. information...
  36.  
  37.  
  38.